package com.itcast.n1_base2;

import java.io.IOException;

/**
 * 启动程序类加载器案例
 * -Xbootclasspath/a:E:/code/flyduck-note/heima-jvm/chapter01/src/main/java/com/itcast/n1_base2/classloader-test.jar
 */
public class Test3_参数控制启动类加载器加载自定义jar {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> clazz = Class.forName("com.itheima.my.A");
        System.out.println(clazz);
        ClassLoader classLoader = clazz.getClassLoader();
        System.out.println("classLoader = " + classLoader);//null
    }
}
